//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_createdroppedbox.sqf"
#include "x_setup.sqf"

#ifndef __TT__
private ["_the_box_pos","_boxes","_mname"];
PARAMS_1(_the_box_pos);
_mname = "bm_" + str(_the_box_pos);
_boxes = __XJIPGetVar(GVAR(ammo_boxes));
_boxes set [count _boxes, [_the_box_pos,_mname]];
[QGVAR(ammo_boxes),_boxes] call FUNC(NetSetJIP);
[_mname, _the_box_pos, "ICON", "ColorBlue",[0.5,0.5],(localize "STR_DOM_MISSIONSTRING_523"),0,GVAR(dropped_box_marker)] call FUNC(CreateMarkerGlobal);
#else
private ["_the_box_pos", "_boxside", "_boxes", "_mname", "_unit"];
PARAMS_3(_the_box_pos,_unit,_boxside);
_mname = "bm_" + str(_the_box_pos);
_boxes = __XJIPGetVar(GVAR(ammo_boxes));
_boxes set [count _boxes, [_the_box_pos,_mname, _boxside]];
[QGVAR(ammo_boxes),_boxes] call FUNC(NetSetJIP);
[_mname, _the_box_pos,"ICON","ColorBlue",[0.5,0.5],(localize "STR_DOM_MISSIONSTRING_523"),0,GVAR(dropped_box_marker)] call FUNC(CreateMarkerGlobal);
[QGVAR(r_mark), [_mname, _boxside]] call FUNC(NetCallEventToClients);
#endif